import { http, jumpExport } from '@/utils/http/axios';

// 获取分销记录列表
export function List(params) {
  return http.request({
    url: '/distribution/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除分销记录
export function Delete(params) {
  return http.request({
    url: '/distribution/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑分销记录
export function Edit(params) {
  return http.request({
    url: '/distribution/edit',
    method: 'POST',
    params,
  });
}

// 修改分销记录状态
export function Status(params) {
  return http.request({
    url: '/distribution/status',
    method: 'POST',
    params,
  });
}

// 获取分销记录指定详情
export function View(params) {
  return http.request({
    url: '/distribution/view',
    method: 'GET',
    params,
  });
}

// 导出分销记录
export function Export(params) {
  jumpExport('/distribution/export', params);
}